// WebSocket 配置
export const WS_CONFIG = {
  // 开发环境
  development: {
    url: 'ws://localhost:875/ws',
    reconnectInterval: 3000,
    maxReconnectAttempts: 5
  },
  // 生产环境
  production: {
    url: 'ws://your-production-domain:875/ws',
    reconnectInterval: 3000,
    maxReconnectAttempts: 5
  }
}

// 获取当前环境的 WebSocket 配置
export function getWsConfig() {
  const env = process.env.NODE_ENV || 'development'
  return WS_CONFIG[env]
}

// 获取 WebSocket URL
export function getWsUrl() {
  return getWsConfig().url
} 